import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter);

const routes=[
    {path:"/", redirect:"/home"},
    {path: "/home", component: () => import('@/views/home')},
    {path: "/market", component:() => import('@/views/market'),},
    {path: "/near", component:() => import('@/views/near')},
    {path: "/my", component:() => import('@/views/my')},
    {path: "/hall", component:() => import('@/views/hall')},

    {path: "/marketDetail", component:() => import('@/views/market/marketDetail/marketDetail')},
]

const router = new VueRouter({
    mode:'history',
    routes
})

export default router